import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        //修改
        int sid=2;
        String sname="xxx";
        int age=15;
        String gender="男";
        String sql="update stu set sname='"+sname+"',age="+age+",gender='"+gender+"' where sid="+sid;
        System.out.println(sql);

        Scanner scanner=new Scanner(System.in);
        //接收字符串，结束标识是空格或者回车
//        String str = scanner.next();
        //收字符串，结束标识是回车
        String str = scanner.nextLine();
        System.out.println(str);
    }
}
